package lu.uni.adtool.ui;

import java.awt.event.ComponentListener;
import java.awt.event.KeyListener;
import java.awt.event.MouseListener;
import java.awt.event.MouseMotionListener;
import java.awt.event.MouseWheelListener;

import lu.uni.adtool.adtree.ADTreeNode;

/**
 * Prototype for canvas keyboard and mouse handler.
 * 
 * @author Piot Kordy
 */
public interface CanvasHandler extends MouseListener, KeyListener,
    MouseWheelListener, MouseMotionListener, ComponentListener
{
  /**
   * Called when focus on node is changed. It will call back the canvas to set
   * up the new focus.
   * @param node node for which to set focus.
   */
  void setFocus(final ADTreeNode node);
}

